package com.example.rpcserver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;


@SpringBootApplication
public class ServeBootApp {

    private static final Logger logger = LoggerFactory.getLogger(ServeBootApp.class);

    /**
     * 不启动端口
     * @param args
     */
    public static void main(String[] args) {
        //1.x
        //new SpringApplicationBuilder().sources(Application.class).web(false).run(args);
        //2.x
        new SpringApplicationBuilder(ServeBootApp.class)
                .web(WebApplicationType.NONE) // .REACTIVE, .SERVLET
                .run(args);
    }
}

